<?php
// 个人信息页面
include 'comm.php';
$conn->query("set names 'UTF8'");
if(!isset($_SESSION['user'])){
    show_msg("请先登录！","login.php");
}
$person=get_person_info();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>个人信息－留言板</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<script src="jquery-3.4.1.js"></script>
<STYLE type=text/css>BODY {
	MARGIN: 0px
}
</STYLE>
<LINK href="css/css.css" type=text/css rel=stylesheet>
<STYLE type=text/css>.STYLE1 {
	FONT-FAMILY: "宋体"
}
</STYLE>

<META content="MSHTML 6.00.2900.6003" name=GENERATOR></HEAD>
<BODY>

<TABLE cellSpacing=0 cellPadding=0 width=760 align=center border=0>
  <TBODY>
  <TR>
    <TD
    style="BORDER-RIGHT: #c0c0c0 1px solid; BORDER-LEFT: #c0c0c0 1px solid; BORDER-BOTTOM: #c0c0c0 1px solid"
    vAlign=top width=140 bgColor=#eeeeee>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD class=left_bg2>当前用户<a href="person.php">【<?php echo $_SESSION['user']; ?>】</a></TD></TR>
        <TR>
          <TD class=left_bg2><A class=link3
            href="register.php">用户注册</A></TD></TR>
        <TR>
          <TD class=left_bg2><A class=link3
            href="login.php">用户登录</A></TD></TR>
        <TR>
        <TR>
          <TD class=left_bg2><A class=link3
            href="view.php">查看留言</A></TD></TR>
        <TR>
          <TD class=left_bg2><A class=link3
            href="lyb.php">在线留言</A></TD></TR>
        <TR>
          <TD class=left_bg2><A class=link3
            href="lyb.php?action=logout">退出登录</A></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD></TD></TR></TBODY></TABLE></TD>
    <TD vAlign=top width=8></TD>
    <TD vAlign=top>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD class=bt>用户个人信息<a href="change_pw.php">【修改密码】</a></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=10 width="100%" border=0>
        <TBODY>
        <TR>
          <TD height=350>
            <TABLE cellSpacing=1 cellPadding=6 width="100%" bgColor=#ff9900
            border=0>
              <TBODY>
              <TR>
                <TD
                bgColor=#fff2e6>您可以在此处查看个人信息.。</TD></TR></TBODY></TABLE><BR>
            <TABLE borderColor=#111111 cellSpacing=0 cellPadding=4 width="100%"
            bgColor=#ffffff border=0>
              <tr>
              	<td width=65 align="left">用户名：</td>
              	<td align="left"><?php echo  $person['username']; ?></td>
              </tr>
              <tr>
              	<td width=65 align="left">等级：</td>
              	<td align="left"><?php  echo $person['level']; ?></td>
              </tr>
              <tr>
              	<td width=65 align="left">积分：</td>
              	<td align="left"><?php echo  $person['score']; ?></td>
              </tr>
               <tr>
              	<td width=65 align="left">联系电话：</td>
              	<td align="left"><?php  echo $person['telephone']; ?></td>
              </tr>
               <tr>
              	<td width=65 align="left">留言次数：</td>
              	<td align="left"><?php echo  $person['ly_time']; ?></td>
              </tr>
               <tr>
              	<td width=85 align="left">最近留言时间：</td>
              	<td align="left"><?php echo $person['ly_last']; ?></td>
              </tr>
              <tr>
              	<td colspan=2 align="right"><a href="#" onclick="javascript:history.back(-1);">【返回】</a></td>
              </tr>
            </TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
</BODY></HTML>
